//
//  SeckillConfirmViewController.h
//  CPICApp
//
//  Created by lizhiwei on 13-3-13.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "ASIHTTPRequest.h"
#import "MBProgressHUD.h"
#import "CustomNumbleKeyboardView.h"
#import "SinaWeibo.h"
#import "SinaWeiboRequest.h"
#import <TencentOpenAPI/TencentOAuth.h>

@class SeckillResultQueryViewController;

@interface SeckillConfirmViewController : UIViewController<UITableViewDataSource,UITableViewDelegate,UITextFieldDelegate,UIAlertViewDelegate,CustomNumberKeyBoardDelegate,SinaWeiboDelegate, SinaWeiboRequestDelegate,TencentSessionDelegate>
{
    NSMutableArray *arrCustomer;
    NSMutableArray *arrGoods;
    
    NSMutableArray * arrCustomerContent;
    NSMutableArray * arrGoodsContent;
    
    SeckillResultQueryViewController * SeckillResultQueryView;
    
    BOOL showProgress;
    MBProgressHUD* progress;
    NSMutableArray * arrSeckillConfirm;
    
    NSMutableDictionary *seckillInfo;
    //秒杀成功时间
    NSString * SeckillSuccessTime;
    NSString * CommodityId;
    
    BOOL isImage;
    BOOL isContent;
    BOOL bindingQQ;//YES 表示已经绑定的了,NO表示还没绑定
    //sinaweibo
    NSDictionary *userInfo;
    NSArray *statuses;
    NSString *postStatusText;
    NSString *postImageStatusText;
    //sinaweibo
    
    //qq
    TencentOAuth* _tencentOAuth;
    NSMutableArray* _permissions;
    NSString *QQAccessToken;
    NSString *QQopenId;
    //qq
    
    NSString *strShareContent;//要分享的内容
    NSString *strInsuranceTitle;//要分享的标题
    NSString  *ImgUrl;//要分享的图片地址
    UIImage *imageDown;//要分享的图片
}

@property(nonatomic,retain)UITableView *TableViewGoodsInfo;
@property(nonatomic,retain)UITableView *TableViewCustomerInfo;
@property(nonatomic,retain)UITextField *txtGoodsName;
@property(nonatomic,retain)UITextField *txtGoodsSeckillTime;
@property(nonatomic,retain)UITextField *txtSmsIdentifyingInfo;
@property(nonatomic,retain)UITextField *txtCustomerName;
@property(nonatomic,retain)UITextField *txtCustomerPhone;
@property(nonatomic,retain)UITextField *txtCustomerAddress;

//商品名称、秒杀成功时间、短信验证信息接收
@property(nonatomic,retain) NSString * GoodsName;
@property(nonatomic,retain) NSString * GoodsSeckillTime;
@property(nonatomic,retain) NSString * SeckillSuccessTime;
@property(nonatomic,retain) NSString * SmsIdentifyingInfo;
@property(nonatomic,retain) NSString * GoodsPrice;

//客户名称、联系电话、通讯地址
@property(nonatomic,retain) NSString * CustomerName;
@property(nonatomic,retain) NSString * CustomerPhone;
@property(nonatomic,retain) NSString * CustomerAddress;
@property(nonatomic,retain) NSMutableDictionary *seckillInfo;

-(id)initView:(NSMutableDictionary *)SeckillInfo;

@property(strong, nonatomic) MBProgressHUD* progress;
-(void)setSeckillConfirmRequest;//向太保移动平台发送秒杀提交确认请求报文

@end
